<?php

namespace App\Http\Controllers;

use App\Files;
use Illuminate\Http\Request;

class FilesController extends Controller
{

    public function index(Request $request, Files $file)
    {
        $files = $file->query()->latest()->simplePaginate(48);
        $title = '文件列表';
        return view('files.index', compact('files', 'title'));
    }
}
